package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

/**
 * Created by WHH-PC on 2018/1/26.
 */
public class TargetRoleEntity extends BaseEntity {

    private String companyId;
    private String roleNameId;
    private Integer faceTarget;
    private Integer telTarget;
    private String createUserId;
    private String salerRoleId;
    private String bigAreaRoleId;
    private Integer salerFaceTarget;
    private Integer salerTelTarget;
    private Integer bigAreaFaceTarget;
    private Integer bigAreaTelTarget;
    private Integer targetType;


    public Integer getTargetType() {
        return targetType;
    }

    public void setTargetType(Integer targetType) {
        this.targetType = targetType;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getRoleNameId() {
        return roleNameId;
    }

    public void setRoleNameId(String roleNameId) {
        this.roleNameId = roleNameId;
    }

    public Integer getFaceTarget() {
        return faceTarget;
    }

    public void setFaceTarget(Integer faceTarget) {
        this.faceTarget = faceTarget;
    }

    public Integer getTelTarget() {
        return telTarget;
    }

    public void setTelTarget(Integer telTarget) {
        this.telTarget = telTarget;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getSalerRoleId() {
        return salerRoleId;
    }

    public void setSalerRoleId(String salerRoleId) {
        this.salerRoleId = salerRoleId;
    }

    public String getBigAreaRoleId() {
        return bigAreaRoleId;
    }

    public void setBigAreaRoleId(String bigAreaRoleId) {
        this.bigAreaRoleId = bigAreaRoleId;
    }
    public Integer getSalerFaceTarget() {
        return salerFaceTarget;
    }

    public void setSalerFaceTarget(Integer salerFaceTarget) {
        this.salerFaceTarget = salerFaceTarget;
    }

    public Integer getSalerTelTarget() {
        return salerTelTarget;
    }

    public void setSalerTelTarget(Integer salerTelTarget) {
        this.salerTelTarget = salerTelTarget;
    }

    public Integer getBigAreaFaceTarget() {
        return bigAreaFaceTarget;
    }

    public void setBigAreaFaceTarget(Integer bigAreaFaceTarget) {
        this.bigAreaFaceTarget = bigAreaFaceTarget;
    }

    public Integer getBigAreaTelTarget() {
        return bigAreaTelTarget;
    }

    public void setBigAreaTelTarget(Integer bigAreaTelTarget) {
        this.bigAreaTelTarget = bigAreaTelTarget;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("ROLE_NAME_ID", getRoleNameId());
        obj.put("FACE_TARGET", getFaceTarget());
        obj.put("TEL_TARGET", getTelTarget());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("TARGET_TYPE", getTargetType());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_TARGET_ROLE";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("COMPANY_ID", "companyId");
        obj.put("ROLE_NAME_ID", "roleNameId");
        obj.put("FACE_TARGET", "faceTarget");
        obj.put("TEL_TARGET", "telTarget");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("TARGET_TYPE", "targetType");
        return  obj;
    }
}
